﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DynamicViewFormApp.Component
{
    class ButtonService
    {

        /// <summary>
        /// 创建分页按钮
        /// </summary>
        /// <param name="pageNum">页码</param>
        /// <param name="pageId">ID</param>
        /// <returns></returns>
        internal static Button CreatePageButton(string pageNum, string pageId)
        {
            Button b = new Button
            {
                Text = pageNum,
                Tag = pageId,
                BackColor = Color.White,
                Size = new Size(80, 100),
                Margin = new Padding(20, 10, 0, 10)
            };
            return b;
        }
    }
}
